from dimension import *
a1 = Dim(71, +0.31, 0)
a2 = Dim(37, +0.25, 0)
a3 = Dim(42,+0.5,0)
b1 = Dim(1, 1, -1)
b2 = Dim(2, 1, -1)
print -a1+a2-a3


#~ op = ('+', '-', '/', '*')
#~ start = 0
#~ f = 'a1+a1'
#~
#~ #    f = f.replace(operator, ' ' + operator + ' ')
#~ main_series = MainSeries()
#~ s = DimSeries('x')
#~ s.add_dim('a1', a1, '')
#~ s.add_dim('a2', a2, '')
#~ s.formula = 'a1 + a2'
#~ main_series.add_series(s)
#~ s = DimSeries('y')
#~ s.add_dim('b1', b1, '')
#~ s.add_dim('b2', b2, '')
#~ s.formula = 'b1 + b2'
#~ main_series.add_series(s)
#~ print 'dimensions = ', main_series.dimensions
